# -*- conding:UTF-8 -*-

'''
@ Project: take_out_food
@ File: serializer.py
@ Author: 韩成瑾
@ Date：2022/8/26 17:13

'''

from rest_framework.serializers import ModelSerializer

from work.models import Work, GoodCate, Good, TaoGood


# 店铺
class WorkSerializer(ModelSerializer):
    class Meta:
        model = Work
        fields = '__all__'


# 商品分类
class GoodCateSerializer(ModelSerializer):
    class Meta:
        model = GoodCate
        fields = '__all__'


# 菜品表
class GoodSerializer(ModelSerializer):
    class Meta:
        model = Good
        fields = '__all__'

#
class TaoGoodSerializer(ModelSerializer):
    class Meta:
        model = TaoGood
        fields = '__all__'


